package com.hong.controller.v3;

import com.hong.model.InMessage;
import com.hong.service.WebSocketService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.messaging.handler.annotation.MessageMapping;
import org.springframework.stereotype.Controller;

/**
 * @Author csh
 * @Description
 * @Date 2018/9/14 21:38
 */
@Controller
public class V3ChatRoomController {
    @Autowired
    private WebSocketService ws;

    @MessageMapping("/v3/single/chat")
    public void singleChat(InMessage message){
            ws.sendChatMessage(message);
    }

}
